import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import i18n from '@/i18n'
import "./styles/index.scss";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import installElementPlus from './plugins/element'
import installDirective from "@/directives";
// 全局属性
import installFilter from "@/filters";
// 导入路由鉴权
import "./permission";
// 导入svgIcon
import installIcons from "@/icons"; // 引入的是/src/icons/index.js
const app = createApp(App);

installFilter(app);
installIcons(app);
app.use(router);
app.use(store);
app.use(i18n);
installElementPlus(app)
installDirective(app);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
app.mount("#app");
